<?
require_once("lib/php/controller/ViewController.php");
require_once("ericdingle/php/Authentication.php");

abstract class AuthViewController extends ViewController {
	public function __construct() {
		$auth = Authentication::getInstance();
		if (!$auth->isLoggedIn()) {
			header("Location: viewPosts");
			exit();
		}
	}
};
?>
